package com.jswlw.controller.devapi;

import com.jswlw.controller.BaseController;
import com.jswlw.schedule.DevSetSchedule;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@Slf4j
@Api(tags = "手动下发")
@RestController
@RequestMapping("/sdxf")
public class SDXFController extends BaseController {


    @Autowired
    DevSetSchedule devSetSchedule;

    @GetMapping("/test")
    public ModelMap test() {
        devSetSchedule.execute();
        return super.successResult("");
    }
}
